﻿using FB.Enums;
using FB.Providers.EmployeeInfo;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FCDB.Web.Models
{
    public class TeamModel
    {
        public string DepartmentName { get; set; }
        public string CreatedBy { get; set; }
        public DateTime CreatedDate { get; set; }
      //  public Department Department { get; set; }
        public string DEPTCode { get; set; }
        public string ModifiedBy { get; set; }
        public DateTime ModifiedDate { get; set; }
        public string Name { get; set; }
        public string TEAMCode { get; set; }
        public int? Order { get; set; }
        public RecordState RecordState { get; set; }

        public TeamModel()
        {
        }
        public TeamModel(Team team)
        {
            CreatedBy = team.CreatedBy;
            CreatedDate = team.CreatedDate;
            
            DepartmentName = team.Department.Name;
            DEPTCode = team.DEPTCode;
            ModifiedBy = team.ModifiedBy;
            ModifiedDate = team.ModifiedDate;
            Name = team.Name;
            Order = team.Order;
            RecordState = team.RecordState;
            TEAMCode = team.TEAMCode;
        }
    }
}